package com.sc.auction.auction.feign;

import com.sc.auction.common.exception.AuctionException;
import com.sc.auction.common.util.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name = "auction-goods")
public interface GoodsFeignService {
    @GetMapping(value = "/goods/images/getImageByGoodsCode")
    public R getImageByGoodsCode(@RequestParam("code") String code);

    @GetMapping("/auction/goods/selectGoodsById")
    public R selectGoodsById(@RequestParam("id") Integer id) ;


    @GetMapping("/auction/goods/getImgById")
    public R getImgById(@RequestParam("aid") Integer aid);
}
